package org.visionlibrary.image.filters.clustering.proto.model;

public abstract class CounterSample extends Sample {
	protected int count = 0;
	
	protected CounterSample(int hue, int sat, int val) {
		super(hue, sat, val);
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public void increment() {
		this.count++;
	}
	
	@Override
	public abstract double distanceFrom(Sample p);
	
	@Override
	public String toString() {
		return "{count=" + count + "}" + super.toString();
	}
}
